package com.atstudy.service;

import com.atstudy.dao.AccountDaoImpl;
import com.atstudy.entites.Account;

import java.util.List;

/**
 * @version v1.0
 * @description:
 * @author: admin
 * @date: 2023/1/31 9:23
 * @copyright: 博为峰
 */
public class AccountServiceImpl implements AccountService {
    @Override
    public Account getAccountById(int id) {
        AccountDaoImpl accountDao = new AccountDaoImpl();
        return accountDao.selectAccountById(id);
    }

    @Override
    public List<Account> getAccounts() {
        AccountDaoImpl accountDao = new AccountDaoImpl();
        return accountDao.selectAccount();
    }
}
